import java.net.*;
import java.io.*;
import java.util.*;

public class server {

	public static void main (String args[]) throws IOException {
	    new server (6000);
	  }

	public server (int port) throws IOException {
	    ServerSocket server = new ServerSocket (port);
	    while (true) {
	      Socket client = server.accept ();
	      System.out.println ("Accepted from " + client.getInetAddress ());
	      Juego j = new Juego (client);
	      j.start ();
	    }
	    
	  }

}
